<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./elementuiStyle.css" />
    <style>
      #app {
        width: 500px;
        margin: 150px auto;
      }
      .el-progress-bar__outer {
        border-radius: 0;
      }
      .el-progress-bar__inner {
        border-radius: 0;
      }
      .processList {
        margin-top: 10px;
      }
      .processList div {
        margin-bottom: 5px;
        font-size: 14px;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <div v-for="(item, index) in dataList" :key="index" class="processList">
        <div>{{item.name}}</div>
        <el-progress
          :text-inside="true"
          :stroke-width="26"
          :format="()=> item.num"
          :percentage="item.percentage"
          stroke-linecap="square"
          text-color="#fff"
          :color=`rgb(${item.color})`
        ></el-progress>
      </div>
    </div>
  </body>
</html>

<script src="./vu2js.js"></script>
<!-- 引入样式 -->
<!-- 引入组件库 -->
<script src="./elementuijs.js"></script>

<script>
  var app = new Vue({
    el: "#app",
    data: {
      dataList: [
        { name: "施工单位1", percentage: 10, num: 10, color: "111, 88, 235" },
        { name: "施工单位2", percentage: 75, num: 75, color: "72, 142, 251" },
        { name: "施工单位3", percentage: 72, num: 72, color: "86, 209, 46" },
        { name: "施工单位4", percentage: 65, num: 65, color: "252, 200, 102" },
        { name: "施工单位5", percentage: 48, num: 48, color: "64, 198, 253" }
      ],
    },
    created() {},
    methods: {},
  });
</script>
